package com.rhzy.wnhc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;
import static com.baomidou.mybatisplus.annotation.IdType.INPUT;

/**
 * <p>
 * 
 * </p>
 *
 * @author wen
 * @since 2020-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel
public class TJobWish extends Model<TJobWish> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type=AUTO)
    private Integer id;
    @ApiModelProperty(value = "用工信息人id")
    private Integer pId;



    @ApiModelProperty(value = "名字",required = true)
    @NotBlank(message = "乘车人名字不能为空")
    private String name;
    @ApiModelProperty(value = "身份证",required = true)
    @NotNull(message="乘车人身份证不能为空")
    private String idCard;
    @NotBlank(message = "乘车人电话不能为空")
    @ApiModelProperty(value = "电话",required = true)
    private String phone;
    /**
     * 家庭住址编码
     */
    @NotBlank(message = "家庭住址编码不能为空")
    @ApiModelProperty(value = "家庭住址编码",required = true)
    private String addressCode;

    /**
     * 家庭住址（中文到村）
     */
    @NotBlank(message = "家庭住址不能为空")
    @ApiModelProperty(value = "家庭住址（中文到村）",required = true)
    private String addressValue;

    /**
     * 家庭详细地址（村之后的组及门牌号等）
     */
    @ApiModelProperty(value = "家庭详细地址（村之后的组及门牌号等）")
    private String addressInfo;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称" ,required = true)
    private String companyName;

    /**
     * 企业地址代码
     */
    @ApiModelProperty(value = "企业地址代码",required = true)
    private String companyAddressCode;

    /**
     * 企业地址
     */
    @ApiModelProperty(value = "企业地址",required = true)
    private String companyAddressValue;

    /**
     * 企业联系电话
     */
    @ApiModelProperty(value = "企业联系电话",required = true)
    private String companyPhone;


    //===================================
    /**
     * 外出方式
     */
    @ApiModelProperty(value = "外出方式",required = true)
    private String outType;
    /**
     * 外出时间
     */
    @ApiModelProperty(value = "外出时间",required = true)
    private String outDate;
    /**
     * 乘车地点
     */
    @ApiModelProperty(value = "乘车地点",required = true)
    private String onCarAddress;
    /**
     * 其他情况说明
     */
    @ApiModelProperty(value = "其他情况说明")
    private String otherInfo;

    /**
     * 健康证明附件
     */
    @ApiModelProperty(value = "健康证明附件",required = true)
    private String healthProve;

    /**
     * 政府同意企业复工复产证明
     */
    @ApiModelProperty(value = "政府同意企业复工复产证明",required = true)
    private String returnFactoryProve;

    /**
     * 企业同意员工返厂证明
     */
    @ApiModelProperty(value = "企业同意员工返厂证明",required = true)
    private String returnWorkProve;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
